Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 3 - Printer Drivers / Using Resources in Drivers


Defining Network Characteristics for Your Driver

You use capture ('cpts') resources to define network strings for your driver if your printing device supports network capture and removal. These resources are only needed if you are using QuickDraw GX's default implementation of the Printer Access Protocol (PAP) communications interface.

If you are using the default PAP implementation, you define four capture strings, each of which is used by QuickDraw GX to manage the capture and removal of your printing device. The capture strings can contain special substitution strings, as described in the section "The Capture ('cpts') Resource" beginning on page 6-63 in the chapter "Printing Resources."

Listing 3-24 shows the capture resources for the ImageWriter II printer driver.

Listing 3-24 Capture resources for the ImageWriter II printer driver

resource gxCaptureType (gxCapturedAppleTalkType, sysHeap,
                                                    purgeable)
{
   "\0D011ImageShared"};
resource gxCaptureType (gxUncapturedAppleTalkType, sysHeap, 
                                                   purgeable)
{
   "\0D011ImageWriter"};
resource gxCaptureType (gxCaptureStringID, sysHeap, purgeable)
{
   "\0X1B\0X62NAMELENPRINTERNAMETYPELENPRINTERTYPE\0X01*"};
resource gxCaptureType (gxReleaseStringID, sysHeap, purgeable)
{
   "\0X1B\0X62NAMELENPRINTERNAMETYPELENPRINTERTYPE\0X01*"};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help